package com.shpng.cheapenglish.action.admin;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.shpng.cheapenglish.db.User;
import com.shpng.cheapenglish.db.UserWord;
import com.shpng.cheapenglish.manager.UserManager;
import com.shpng.cheapenglish.manager.WordManager;

public class DeleteMyWordAction {

	public String execute(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
//		WordManager wordManager = WordManager.getInstance();
//		UserManager userManager = UserManager.getInstance();
//		User user = userManager.getUser((String) req.getSession().getAttribute(
//				"email"));
//
//		List<UserWord> userWords = wordManager.getUserWords(user);
//		for (UserWord uw : userWords)
//			wordManager.deleteUserWord(uw);
		return "/pages/word-input.jsp";
	}
}
